package com.mano.mall;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author: zj
 * @Description:
 * @Date: Created in 10:29 2020/9/21
 * @Modified By:
 */
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class,
        HibernateJpaAutoConfiguration.class})
@EnableDiscoveryClient
@EnableSwagger2Doc
//@EnableApolloConfig
@EnableFeignClients
public class WeichatApp {

    public static void main(String[] args) {
        SpringApplication.run(WeichatApp.class,args);
    }

//    @Bean
//    public RedisUtil redisUtil(){
//        return new RedisUtil();
//    }
}


